package View;

import javax.swing.JFrame;

import Controller.Controller;
import Controller.Model;

public class WindowMenu extends JFrame {
	private static final long serialVersionUID = 1L;
	private final Controller _ctrl;
	private final MainMenu _menu;
	private final Model _m;

	public WindowMenu(Controller ctrl, Model m) {
		_ctrl = ctrl;
		_m = m;
		_menu = new MainMenu(_ctrl, _m);
		setFocusable(true);
		setTitle("RE56 LTE Multiplexing Simulation");
		setSize(320, 240);
		setLocationRelativeTo(null);
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setContentPane(_menu);
		setVisible(true);
	}

	public MainMenu getPanel() {
		return _menu;
	}
}
